<?php
	namespace webadmin\isrtuple
?>
<?php
include "./dbmng/dbconn.php"
/*
	$_POST['phy_nn_no'] SELECT 
	$_POST['ord_nn_no'] SELECT
	$gen_nm_no SELECT
	$fam_nm_no SELECT
	$spe_nm_ch MANUAL INPUT
	$spe_nm_la MANUAL INPUT
	$img	MANUAL UPLOAD
	$spe_no	AUTOGENERATE
	
*/
$inputval = array($_GET['phy_nn_no'], 
					$_GET['ord_nn_no'],
					$_GET['fam_nm_no'],
					$_GET['gen_nm_no'],
					$_GET['spe_nm_ch'],
					$_GET['spe_nm_la']);

function outputkey($array){
	$str = '';
	$index = 1
	foreach($array as $key=>$value){
		if(index == 1){
			$str .= $key;
		}else{
			$str .= ',' . $key;
		}
	}
	return $str;
}
function outputvalue($array){
	$str = '';
	$index = 1
	foreach($array as $key=>$value){
		if(index == 1){
			$str .= $value;
		}else{
			$str .= ',' . $key;
		}
	}
	return $str;
}

function main(){
	if ( $_GET ){
		$insert = $dbconn;
	}
	$mycomm = new dbmgr\dbConnDefault;
	$mycomm -> begin_transaction();
	$values = 
	$sqlstat = "INSERT INTO " . $tbl . '('. outputkey .')' .
			   " VALUES(" . $values . ");";
	$mycomm -> commit();
}main();
?>
